home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 August / Macworld (1997-08).dmg / Shareware World / Info / For Developers / InstallerMaker™ 4.0 Installer / Customizing InstallerMaker / Installer Add-ons / Launch App / LaunchIEnd.c < prev    next >
C/C++ Source or Header  |  1997-05-07  |  424b  |  25 lines

  1. #include "IMExtensionsFor3_0.h"
  2.  
  3. typedef long **LongHandle;
  4.  
  5. pascal short main(     const short abort,
  6.                     const IMEnvironsRec *environs,
  7.                     short *restartFlag,
  8.                     unsigned long *refcon)
  9.                     
  10. {
  11.     if (abort || *restartFlag)
  12.         *refcon = 0;
  13.     else
  14.         *refcon = 1;
  15.         
  16.     if (*refcon)
  17.         {
  18.         LongHandle pak;
  19.         
  20.         pak = (LongHandle) GetResource('LAPK',6051);
  21.         if (pak)
  22.             *refcon = environs->packages[0] & (**pak);
  23.         }
  24.     return 0L;
  25. }